<?php
//error_reporting(E_ALL^E_NOTICE);
function my_error_handler($errno, $errstr, $errfile, $errline){
	if($errno==E_USER_NOTICE){
		print_r($errstr);
		return;
	}
	$error_level = array(
		1 => "Fatal error",
		2 => "Waring",
		//4 => "E_PARSE",
		8 => "Notice",
		//16 => "E_CORE_ERROR",
		//32 => "E_CORE_WARNING",
	);
	$error = error_get_last();
	if($error){
		$error['type'] = $error_level[$error['type']]
			? $error_level[$error['type']]
			: $error['type'];
	}
	print_r($error);
}
function final_fatal_handler($errno, $errstr, $errfile, $errline){
	$error = error_get_last();
	if($error['type']==1){
		$error['type'] = 'Fatal error';
	}
	print_r($error);
}
set_error_handler('my_error_handler');
//register_shutdown_function('final_fatal_handler');
include "oracle4php4.php";
$db = new oracle4php4();
$db->debug = 'console';
//var_dump($db->execute('update ad_type set name = :0, fs = :1 where id = :2', array('test', 2, 13138)));
print_r($db->getAll('select * from vod_datasource where rownum < :0', array(10)));
//$this->lskdj();
